package com.bm.specialvehiclefordispatcher.logics;

import com.bm.corelibs.logic.BaseLogic.NListener;
import com.bm.specialvehiclefordispatcher.bean.BaseData;
import com.bm.specialvehiclefordispatcher.constants.Urls;

public class StationManager extends BaseManager {
	
	public void getMyStaion(String id, NListener<BaseData> l) {
		logic.edit().resetAll().addParam("id", id).setListener(l).setBaseClass(BaseData.class).setUrl(Urls.MY_STATION);
		logic.doPost();
	}
	
	public void getStationList(String name, NListener<BaseData> l) {
		logic.edit().resetAll().addParam("name", name).setListener(l).setBaseClass(BaseData.class).setUrl(Urls.GET_STATIONS);
		logic.doPost();
	}
	
	public void setStation(long stationId, String id, NListener<BaseData> l) {
		logic.edit().resetAll().addParam("stationId", stationId + "").addParam("id", id).setListener(l).setBaseClass(BaseData.class).setUrl(Urls.SET_STATION);
		logic.doPost();
	}

}
